package com.decent.core.alarm.process;

import com.decent.common.bo.MessageBean;
import com.decent.core.alarm.model.AlarmModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 报警业务流程上下文
 *
 * @author menghx
 * @date 2022-03-29
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class AlarmProcessContext {
    /**
     * 流程处理的结果
     */
    private MessageBean response;
    /**
     * 存储责任链上下文数据的模型
     */
    private AlarmModel processModel;
    /**
     * 责任链中断的标识
     */
    private Boolean needBreak;
}
